/** When your routing table is too long, you can split it into small modules **/
/** 如果要在左侧的导航栏中显示自己创建的页面，那么需要在这个页面添加路径 */
import Layout from '@/layout' // 引入框架结构

const componentsRouter = {
  path: '/components',
  component: Layout,
  redirect: 'noRedirect',
  name: 'ComponentDemo',
  meta: {
    title: 'Components',
    icon: 'component'
  },
  children: [
    {
      path: 'fault',
      component: () => import('@/views/components-demo/ehs_fault'),
      name: 'FaultDemo',
      meta: { title: '未遂事故单列表' }
    },
    {
      path: 'inquiry',
      component: () => import('@/views/components-demo/ehs_inquiry'),
      name: 'InquiryDemo',
      meta: { title: '调查计划列表' }
    },
    {
      path: 'improve',
      component: () => import('@/views/components-demo/ehs_improve'),
      name: 'ImproveDemo',
      meta: { title: '改善计划列表' }
    },
    {
      path: 'workout',
      component: () => import('@/views/components-demo/ehs_workout'),
      name: 'WorkOutDemo',
      meta: { title: '实施工单列表' }
    },
    {
      path: 'train-all',
      component: () => import('@/views/components-demo/train-all'),
      name: 'TrainAllDemo',
      meta: { title: '总培训列表' }
    },
    {
      path: 'train-new',
      component: () => import('@/views/components-demo/train-new'),
      name: 'TrainNewDemo',
      meta: { title: '新员工培训' }
    },
    {
      path: 'train-const',
      component: () => import('@/views/components-demo/train-const'),
      name: 'TrainConstDemo',
      meta: { title: '承包商培训' }
    },
    {
      path: 'train-re',
      component: () => import('@/views/components-demo/train-re'),
      name: 'TrainReDemo',
      meta: { title: '年度再培训' }
    },
    {
      path: 'train-post',
      component: () => import('@/views/components-demo/train-post'),
      name: 'TrainPostDemo',
      meta: { title: '转岗培训' }
    },
    {
      path: 'tinymce',
      component: () => import('@/views/components-demo/tinymce'),
      name: 'TinymceDemo',
      meta: { title: 'Tinymce' }
    },
    {
      path: 'markdown',
      component: () => import('@/views/components-demo/markdown'),
      name: 'MarkdownDemo',
      meta: { title: 'Markdown' }
    },
    {
      path: 'json-editor',
      component: () => import('@/views/components-demo/json-editor'),
      name: 'JsonEditorDemo',
      meta: { title: 'JSON Editor' }
    },
    {
      path: 'split-pane',
      component: () => import('@/views/components-demo/split-pane'),
      name: 'SplitpaneDemo',
      meta: { title: 'SplitPane' }
    },
    {
      path: 'avatar-upload',
      component: () => import('@/views/components-demo/avatar-upload'),
      name: 'AvatarUploadDemo',
      meta: { title: 'Upload' }
    },
    {
      path: 'dropzone',
      component: () => import('@/views/components-demo/dropzone'),
      name: 'DropzoneDemo',
      meta: { title: 'Dropzone' }
    },
    {
      path: 'sticky',
      component: () => import('@/views/components-demo/sticky'),
      name: 'StickyDemo',
      meta: { title: 'Sticky' }
    },
    {
      path: 'count-to',
      component: () => import('@/views/components-demo/count-to'),
      name: 'CountToDemo',
      meta: { title: 'Count To' }
    },
    {
      path: 'mixin',
      component: () => import('@/views/components-demo/mixin'),
      name: 'ComponentMixinDemo',
      meta: { title: 'Component Mixin' }
    },
    {
      path: 'back-to-top',
      component: () => import('@/views/components-demo/back-to-top'),
      name: 'BackToTopDemo',
      meta: { title: 'Back To Top' }
    },
    {
      path: 'drag-dialog',
      component: () => import('@/views/components-demo/drag-dialog'),
      name: 'DragDialogDemo',
      meta: { title: 'Drag Dialog' }
    },
    {
      path: 'drag-select',
      component: () => import('@/views/components-demo/drag-select'),
      name: 'DragSelectDemo',
      meta: { title: 'Drag Select' }
    },
    {
      path: 'dnd-list',
      component: () => import('@/views/components-demo/dnd-list'),
      name: 'DndListDemo',
      meta: { title: 'Dnd List' }
    },
    {
      path: 'drag-kanban',
      component: () => import('@/views/components-demo/drag-kanban'),
      name: 'DragKanbanDemo',
      meta: { title: 'Drag Kanban' }
    }
  ]
}

export default componentsRouter
